package com.wgl.express.entity;

import java.util.List;

public class Station {
    private int sid;
    private String stationname;
    private String stationaddress;
    private int capacity;

    private List<User> posts;

    public Station(int sid, String stationname, String stationaddress, int capacity) {
        this.sid = sid;
        this.stationname = stationname;
        this.stationaddress = stationaddress;
        this.capacity = capacity;
    }

    public Station() {
    }

    public List<User> getPosts() {
        return posts;
    }

    public void setPosts(List<User> posts) {
        this.posts = posts;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getStationname() {
        return stationname;
    }

    public void setStationname(String stationname) {
        this.stationname = stationname;
    }

    public String getStationaddress() {
        return stationaddress;
    }

    public void setStationaddress(String stationaddress) {
        this.stationaddress = stationaddress;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        return "Station{" +
                "sid=" + sid +
                ", stationname='" + stationname + '\'' +
                ", stationaddress='" + stationaddress + '\'' +
                ", capacity=" + capacity +
                ", posts=" + posts +
                '}';
    }
}
